package com.ruoyi.zhjd.laboratory.modules.disconnectRecord.mapper;


import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhjd.laboratory.modules.disconnectRecord.domain.NSiteDisconnectRecord;
import com.ruoyi.zhjd.laboratory.modules.disconnectRecord.domain.bo.NSiteDisconnectRecordBo;
import com.ruoyi.zhjd.laboratory.modules.disconnectRecord.domain.vo.NSiteDisconnectRecordVo;

/**
 * 工地现场断网记录Mapper接口
 *
 * @author zyb
 * @date 2023-10-13
 */
public interface NSiteDisconnectRecordMapper extends BaseMapperPlus<NSiteDisconnectRecordMapper, NSiteDisconnectRecord, NSiteDisconnectRecordVo> {
    @DataPermission({
        @DataColumn(key = "deptName", value = "d.dept_id"),
    })
	Page<NSiteDisconnectRecordVo> page(Page<Object> build,@Param("bo") NSiteDisconnectRecordBo bo);
    @DataPermission({
        @DataColumn(key = "deptName", value = "d.dept_id"),
    })
	Page<NSiteDisconnectRecordVo> pageBhz(Page<Object> build, @Param("bo") NSiteDisconnectRecordBo bo);

	Page<NSiteDisconnectRecordVo> selectHistoryById(Page<Object> build,String type);

	Page<NSiteDisconnectRecordVo> equipmentOffline(Page<Object> build, @Param("bo") NSiteDisconnectRecordBo bo);

	Page<NSiteDisconnectRecordVo> equipmentOfflineDetail(Page<Object> build, @Param("bo") NSiteDisconnectRecordBo bo);

	Page<NSiteDisconnectRecordVo> getSiteOnlineRecord(Page<Object> build, @Param("bo") NSiteDisconnectRecordBo bo);



}
